function vFrcaPwwZ(pwwZ){ let arrPlvrZComunZ = ['senha', 'password', 'admin', '123456', '12345', '123456789', 'qwerty', 'abc123', 'letmein', 'welcome', 'monkey', 'dragon', 'sunshine', 'iloveyou', 'princess', 'football', 'baseball', 'master', 'hello', 'freedom', 'whatever', 'trustno1', '000000', '111111', '112233', '123123', '654321', '666666', '777777', '121212', '987654', '1234', '4321', '0000', '1111', '2222', '3333', '4444', '5555', '6666', '7777', '8888', '9999', '123321', '1234567', '12345678', '1234567890', 'asdf', 'asdfgh', 'qwertyuiop', 'zxcvbnm', 'qazwsx', '1qaz2wsx', '1q2w3e4r', 'zaq12wsx', 'passw0rd', 'password1', 'loveyou', 'iloveyou', 'sweetheart', 'mybaby', 'angel', 'love123', 'babygirl', 'babyboy', 'bestfriend', 'soulmate', 'forever', 'football', 'baseball', 'soccer', 'basketball', 'hockey', 'golf', 'tennis', 'pokemon', 'superman', 'batman', 'naruto', 'dragonball', 'money', 'cash', 'dollar', 'million', 'billion', 'rich', 'wealth', 'atm123', 'bank', 'credit', 'loan', 'google', 'facebook', 'linkedin', 'amazon', 'apple', 'netflix', 'spotify', 'youtube', 'gmail', 'outlook', 'yahoo', 'microsoft', 'michael', 'jessica', 'ashley', 'brittany', 'matthew', 'daniel', 'jennifer', 'joshua', 'amanda', 'andrew', 'sarah', 'james', 'samantha', '1990', '1991', '1992', '2000', '2001', '2002', '1987', '1988', '1989', '1978', '1980', '1995', '2005', '1999', 'jesus', 'god', 'blessed', 'heaven', 'saint', 'church', 'faith', 'angel', 'prayer', 'cross', 'root', 'guest', 'user', 'system', 'administrator', 'oracle', 'access', 'database', 'backup', 'proxy', 'temp123', 'default', 'amor', 'felicidade', 'forca', 'coragem', 'feliz', 'triste', 'grande', 'pequeno', 'highschool', 'college', 'family', 'friends', 'abcd', 'bcdef', 'xyz123', 'test', 'testing', 'example', 'temp', 'unknown', 'random', 'cookie', 'magic', 'power', 'admin123']; let fRcaZ = 0; if (pwwZ.length >= 8) fRcaZ++; if (/[A-Z]/.test(pwwZ)) fRcaZ++; if (/[a-z]/.test(pwwZ)) fRcaZ++; if (/[0-9]/.test(pwwZ)) fRcaZ++; if (/[\W_]/.test(pwwZ)) fRcaZ++; let pNlZ = 0; if (/(.)\1{2,}/.test(pwwZ) || /(\d)\1{2,}/.test(pwwZ)) pNlZ++; if (/(123|234|345|456|567|678|789|890)/.test(pwwZ) || /(abc|bcd|cde|def|efg|fgh)/i.test(pwwZ)) pNlZ++; for (const palavra of arrPlvrZComunZ){ if (pwwZ.toLowerCase().includes(palavra)) pNlZ += 3; } const pFinal = fRcaZ - pNlZ; var cssZ = "border-radius:3px;margin-top: 10px;margin-bottom: 10px;"; var bRz = "#ff000042"; var tXt = "Senha fraca"; if (pFinal >= 5 && pwwZ.length >= 12){ bRz = "#00a5ff42"; tXt = "Senha forte"; }else if (pFinal >= 3 && pwwZ.length >= 8){ bRz = "#ff900042"; tXt = "Senha média"; }else{ bRz = "#ff000042"; tXt = "Senha fraca"; } $("#divAlertPwwZ").attr("style", "border: solid 1px " + bRz + ";" + cssZ + ";"); $("#divAlertPwwZ small").text(tXt); $(".btNRecZ").prop('disabled', !(pFinal >= 3 && pwwZ.length >= 8?true:false)); }